import {
  Text,
  View,
  TouchableOpacity,
  NativeModules,
} from 'react-native';
import React, { Component } from 'react';
//RN与原生iOS的交互：
var RNManager = NativeModules.UEManager;

const _clickWeb = () => {
};

const _clickHomeDetail = () => {
  RNManager.takePhotos();
};

//工作台路由
export default routeIndex = {
    HomeDetail:{
        screen:require('../homeDetail/NextPage.js').default,
        navigationOptions:({ navigation }) => ({
            title:'首页详情',
            headerRight:
                <TouchableOpacity onPress={()=>{_clickHomeDetail()}}>
                    <View style={{width:60,height:44,marginRight:0,alignItems:'center'}}>
                      <Text style={{color:'black',textAlign:'center',fontSize:16,marginTop:13}}>拍照</Text>
                    </View>
                </TouchableOpacity>,
        })
    },

    VideoDetail:{
        screen:require('../favorite//VideoDetail.js').default,
        navigationOptions:({ navigation }) => ({
            title:'视频详情',
        })
    },
    // WebPage:{
    //     screen:require('../favorite//WebPage.js').default,
    //     navigationOptions:({ navigation }) => ({
    //         title:'视频',
    //     })
    // },
    // JokePage:{
    //     screen:require('../favorite//JokePage.js').default,
    //     navigationOptions:({ navigation }) => ({
    //         title:'段子',
    //     })
    // },
    MovieDetailPage:{
        screen:require('../favorite//MovieDetailPage.js').default,
        navigationOptions:({ navigation }) => ({
            title:'电影详情',
        })
    },
}
